package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {

    void insertNursingProjectPlan(List<NursingProjectPlan> list);

    /**
     * 根据planId查询护理项目计划关联表及 projectName
     * @return
     */
     List<NursingProjectPlanVo> selectByNurPlanId(Long id);
    /**
     * 根据planId删除护理项目计划关联表
     * @return.
     */
     @Delete("delete from nursing_project_plan where plan_id = #{id} ")
     void deleteByNurPlanId(Long id);

}
